import request from '@/utils/request'

// 查询告警数据列表
export function listAlarm_record(query) {
  return request({
    url: '/scada/alarm_record/list',
    method: 'get',
    params: query
  })
}

// 查询告警数据详细
export function getAlarm_record(id) {
  return request({
    url: '/scada/alarm_record/' + id,
    method: 'get'
  })
}

// 新增告警数据
export function addAlarm_record(data) {
  return request({
    url: '/scada/alarm_record',
    method: 'post',
    data: data
  })
}

// 修改告警数据
export function updateAlarm_record(data) {
  return request({
    url: '/scada/alarm_record',
    method: 'put',
    data: data
  })
}

// 删除告警数据
export function delAlarm_record(id) {
  return request({
    url: '/scada/alarm_record/' + id,
    method: 'delete'
  })
}
